package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TActivity;
import com.bootdo.project.dao.TActivityMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TActivityService {

	@Autowired
    private TActivityMapper tActivityMapper;
    
    public int deleteByPrimaryKey(Long id){
        return tActivityMapper.deleteByPrimaryKey(id);
    }

    public int insert(TActivity record){
        return tActivityMapper.insert(record);
    }

    public int insertSelective(TActivity record){
        return tActivityMapper.insertSelective(record);
    }

    public TActivity selectByPrimaryKey(Long id){
        return tActivityMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TActivity record){
        return tActivityMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TActivity record){
        return tActivityMapper.updateByPrimaryKey(record);
    }

    public List<TActivity> selectByCondition(TActivity record){
        return tActivityMapper.selectByCondition(record);
    }

    public List<TActivity> selectAll(){
        return tActivityMapper.selectAll();
    }

    public List<TActivity> selectByPage(Page<TActivity> page){
        return tActivityMapper.selectByPage(page);
    }

    public Integer count(TActivity record){
        return tActivityMapper.count(record);
    }

    public int deleteByCondition(TActivity record){
        return tActivityMapper.deleteByCondition(record);
    }

}
